package com.tiger.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.tiger.db.type.NewsApi;
import com.tiger.db.type.OpenAccount;
import com.tiger.db.type.Openapi;
import lombok.Data;

import java.util.HashMap;

@Data
@TableName(value = "platform_config", autoResultMap = true)
public class PlatformConfig {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "wechat", typeHandler = JacksonTypeHandler.class)
    private HashMap<String, Object> wechat;

    @TableField(value = "open_account", typeHandler = JacksonTypeHandler.class)
    private OpenAccount openAccount;

    @TableField(value = "openapi", typeHandler = JacksonTypeHandler.class)
    private Openapi openapi;

    @TableField(value = "newsapi", typeHandler = JacksonTypeHandler.class)
    private NewsApi newsapi;


}
